<div id="main_content" style="float: left; background: #fff;">
    <h3><?php echo $title; ?></h3>
    <a href="<?php echo base_url();?>conversion/add" class="new_regis"><?php echo $this->lang->line('CR_Newregister'); ?></a>
    <div class="table_list">
    	<table width="100%" border="0"  class="list_view_data" cellpadding="0" cellspacing="0">
            <tr align="center">
                <th width="10%"><?php echo $this->lang->line('CR_no'); ?></th>
                <th width="40%"><?php echo $this->lang->line('CR_Rate'); ?></th>
                <th width="30%"><?php echo $this->lang->line('CR_Applydate'); ?></th>
                <th width="10%"><?php echo $this->lang->line('CR_Action'); ?></th>
                <th width="10%"><?php echo $this->lang->line('spl__Delete'); ?></th>
            </tr>
            <?php if (count($data)){foreach($data as $row){ 
                $path=($row['Del_Flag']==0) ? base_url()."public/sites/images/check-icon.png" : base_url()."public/sites/images/uncheck.gif";
                ?>
                <tr>
                    <td align="center" width="50"><?php echo ++$order; ?></td>
                    <td align="center" width="150"  >
                        <a href="javascript:void(0);" class="h_td_name post_id" rel="<?php echo $row['RateId'] ?>" >
                            <?php echo  number_format($row['Rate']); ?>
                        </a>
                    </td>
                    <td align="center" width="150"><?php echo date('Y/m/d',strtotime($row['ApplyDate'])); ?></td>
                    <td align="center">
                        <a href="javascript:void(0);" class="post_id" rel="<?php echo $row['RateId'] ?>" >
                            <img src="<?php echo base_url();?>public/sites/images/Pencil.png" width="15" />
                        </a>
                    </td>
                    <td align="center"><img src="<?php echo $path;?>"/></td>
                </tr>                
            <?php } } ?>                                   
        </table>
        <?php
        if (!count($data)){
            echo "<p>".$this->lang->line('CR_null')."</p>";
        }
        ?>        
    </div>
    <div class="h_pagination">
        <?php echo $pagi;  ?>
    </div>
</div>
<form id="frmSubmit" action="<?php echo base_url();?>conversion/edit" Method="POST">
  <input type="hidden" id="hidID" name="id">  
</form>
<script>
$( ".post_id" ).click(function() {     
     $('#hidID').val($(this).attr('rel'));
     $( "#frmSubmit" ).submit();
});
</script>